<?php $this->load->view('header/admin'); ?>
<div id="main">
    <div class="container">
        <div class="span-17 colborder" id="content">
	        <?php if (isset($messages)) echo $messages; ?>
	        <h3>Add Glider</h3>
            <form action="" method="post">
		        <div class="box span-16 last">
			        <p>
				        <label for="name">Manufacturer: </label> 
				        <?php echo form_dropdown('brand', GliderModel::getGliderBrands(), set_value('brand', $glider->brand), 'id="brand"') ?>
			        </p>
					<p>
						<label for="location">Model: </label> 
			    		<?php echo form_input('model',set_value('model', $glider->model)); ?>
					</p>
					<p>
			            <label for="postcode">EN Cert.: </label> 
			            <?php echo form_input('cert_en',set_value('cert_en', $glider->cert_en)); ?>
					</p>
					<p>
			            <label for="country_code">LTF Cert.: </label> 
			            <?php echo form_input('cert_ltf',set_value('cert_ltf', $glider->cert_ltf)); ?>
					</p>
                    <p>
                        <label for="active">Prototype: </label> 
                        <?php echo form_dropdown('proto', array (
                        0 => 'No',
                        1 => 'Yes',
                        ), set_value('proto', $glider->proto)); ?></p>
				</div>
				<div class="span-16">
	                <p><?php echo form_submit('action','Add'); ?></p>
				</div>
	        </form>
        </div> <!-- end content -->
        <?php $this->load->view('menu/admin')?>
    </div> <!-- end container -->
    <script type="text/javascript">
    $(document).ready(function() {
    	$("#brand").focus();
    });
    </script>
</div> <!-- end main -->
<?php $this->load->view('footer/standard');?>
